package hxy.scan.server;

import hxy.scan.server.dao.model.FruitModel;

import java.util.HashMap;

public class HashMapDemo {
    public static void main(String[] args) {
        HashMap<String, FruitModel> objectObjectHashMap = new HashMap<>();

        HashMap<Integer, Integer> hashMap =new HashMap<>();
        HashMap<HashMapDemo, FruitModel> hashMap1 =new HashMap<>();

        FruitModel value = new FruitModel();
        value.setName("橘");
        FruitModel value1 = new FruitModel();
        value.setName("枳");
        objectObjectHashMap.put("淮南", value);
        objectObjectHashMap.put("淮北", value1);


        objectObjectHashMap.put("安1徽",new FruitModel());
        objectObjectHashMap.put("安6徽",new FruitModel());
        objectObjectHashMap.put("安2徽",new FruitModel());
        objectObjectHashMap.put("安3徽",new FruitModel());
        objectObjectHashMap.put("安4徽",new FruitModel());
        objectObjectHashMap.put("安5徽",new FruitModel());
        Object ahu = objectObjectHashMap.get("安徽");






        System.out.println(ahu);

    }
}


